<?php


use App\Models\Outbound\InterceptOrderDetailModel;
use Illuminate\Support\Facades\DB;

$scan_details = InterceptOrderDetailModel::query()
    ->where('warehouse_code',$warehouse_code)
    ->where('sku',$scan_code)->orWhere('intercept_code',$scan_code)
    ->orWhere('outbound_order_code',$scan_code)->orWhere('container_code',$scan_code)
    ->get()->toArray();



$listObj = DB::select($sqlMain);